package com.supermarket.order.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class OrderMaster {
    private Long id;
    private String orderSn;
    private Long userId;
    private Integer orderType;
    private Integer sourceType;
    private Integer orderStatus;
    private BigDecimal totalAmount;
    private BigDecimal payAmount;
    private BigDecimal freightAmount;
    private BigDecimal couponAmount;
    private BigDecimal promotionAmount;
    private BigDecimal integrationAmount;
    private Integer payType;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date paymentTime;
    private Date deliveryTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date receiveTime;
    private String consigneeName;
    private String consigneePhone;
    private String consigneeProvince;
    private String consigneeCity;
    private String consigneeRegion;
    private String consigneeStreet;
    private String consigneeDetail;
    private String note;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    // 关联订单商品
    private List<OrderItem> orderItems;
} 